package com.tangcco.lockwell.viewmodel.admin.subject;

import com.tangcco.lockwell.base.BasePage;

/*
* author:宋鑫垚
* 创建理由：学科分页管理要继承分页类，前端再查看的时候不会查看parendId,而是直接查看父类的名称，要加一个字段
* */
public class SubjectVM extends BasePage {
    //主键Id
    private Integer id;
    //分类编码
    private String categoryCode;
    //分类名称
    private String categoryName;
    //父节点Id
    private Integer parentId;
    //创建者
    private Integer createdBy;
    //创建时间
    private String createTime;
    //更新者
    private Integer modifyBy;
    //更新时间
    private String modifyTime;
    //父节点名称
    private String parentName;

    public SubjectVM() {
    }

    public SubjectVM(Integer id, String categoryCode, String categoryName, Integer parentId, Integer createdBy, String createTime, Integer modifyBy, String modifyTime, String parentName) {
        this.id = id;
        this.categoryCode = categoryCode;
        this.categoryName = categoryName;
        this.parentId = parentId;
        this.createdBy = createdBy;
        this.createTime = createTime;
        this.modifyBy = modifyBy;
        this.modifyTime = modifyTime;
        this.parentName = parentName;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getCategoryCode() {
        return categoryCode;
    }

    public void setCategoryCode(String categoryCode) {
        this.categoryCode = categoryCode;
    }

    public String getCategoryName() {
        return categoryName;
    }

    public void setCategoryName(String categoryName) {
        this.categoryName = categoryName;
    }

    public Integer getParentId() {
        return parentId;
    }

    public void setParentId(Integer parentId) {
        this.parentId = parentId;
    }

    public Integer getCreatedBy() {
        return createdBy;
    }

    public void setCreatedBy(Integer createdBy) {
        this.createdBy = createdBy;
    }

    public String getCreateTime() {
        return createTime;
    }

    public void setCreateTime(String createTime) {
        this.createTime = createTime;
    }

    public Integer getModifyBy() {
        return modifyBy;
    }

    public void setModifyBy(Integer modifyBy) {
        this.modifyBy = modifyBy;
    }

    public String getModifyTime() {
        return modifyTime;
    }

    public void setModifyTime(String modifyTime) {
        this.modifyTime = modifyTime;
    }

    public String getParentName() {
        return parentName;
    }

    public void setParentName(String parentName) {
        this.parentName = parentName;
    }

    @Override
    public String toString() {
        return "DataDictionaryVM{" +
                "id=" + id +
                ", categoryCode='" + categoryCode + '\'' +
                ", categoryName='" + categoryName + '\'' +
                ", parentId=" + parentId +
                ", createdBy=" + createdBy +
                ", createTime='" + createTime + '\'' +
                ", modifyBy=" + modifyBy +
                ", modifyTime='" + modifyTime + '\'' +
                ", parentName='" + parentName + '\'' +
                '}';
    }
}
